import axios from '../utils'

const api = {
  changeStyle: '/company/changeStyle',
  //获取公司主题配置
  getStyle: '/overt/getStyle',
  //获取公司设置配置
  getConfigAPI: '/company/getConfig',
  updateConFigAPI: '/company/changeConfig'
}

export default api

export function getCompanyStyle() {
  return axios({
    url: api.getStyle,
    method: 'get'
  })
}

export function setCompanyStyle(parameter) {
  return axios({
    url: api.changeStyle,
    method: 'post',
    data: parameter
  })
}

export function getCompanyConfig() {
  return axios.get(api.getConfigAPI)
}

export function editConfig(params) {
  return axios.post(api.updateConFigAPI, params)
}
